# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header

DESCRIPTION="Gaim plugin for (sofia) SIP."
HOMEPAGE="http:/sofia-sip.sourceforge.net/"
SRC_URI="mirror://sourceforge/sofia-sip/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="nls debug"

DEPEND=">=net-libs/sofia-sip-1.12.1"
RDEPEND=">=net-im/gaim-1.4.99"
RESTRICT="nomirror"

src_compile() {
	local myconf
	myconf="--enable-gst"

	econf ${myconf} || die "configure failed"
	make || die "make failed"
}

src_install() {
	make install DESTDIR=${D} || die "make install failed"
	dodir /usr/lib64/gaim
	mv ${D}usr/lib64/* ${D}usr/lib64/gaim/
	dodoc AUTHORS ChangeLog INSTALL NEWS README TODO VERSION
}
